/******
 * Defines styles for building a portlet-type "databox" (as seen in Inspector Central)
 */
 
 /** Draws the shadow around the databox header */
 .databoxWrapper {
	background-color: #7f7f7f;
	width: 552px;
	margin-bottom: 25px;
}

/** A box containing different data table layouts and a background header graphic */
.databox {
	background: transparent url(../images/databox/databox-header-bg.gif) no-repeat left top;
	background-color: white;
	width: 549px;
	border: solid 2px #004070;
	position: relative;
	bottom: 4px;
	right: 5px;
}

/** Header text that overlays the background header */
.databox h1 {
	font-weight: bold;
	font-size: 12px;
	margin: 2px 0px 0px 5px;
	letter-spacing: 1.25px;
	height: 19px;
}

.databox h2 {
	font-size: 11px;
	letter-spacing: 1.75px;
	margin: 10px 0px 5px 5px;
}

.databox p {
	margin-left: 5px;
	margin-right: 5px;
}

.databox table {
	border-spacing: 0px;
	border-collapse: collapse;
	table-layout: auto;
	position: relative;
	color: #004071;
	font-weight: normal;
	font-family: verdana, arial, sans-serif;
}

.databox td {
	padding-bottom: 6px;
	vertical-align: top;
}

.databox span.required {
	padding-left: 2px;
	color: #f69348;
}

/** A common content table inside a databox */
.databoxStandardTable {
	margin: 5px 0px 5px 5px;
	font-size: 12px;	
	width: 539px;
}

	
/** Two column table inside a databox, with a vertical line separating the columns */						
.databoxDividerTable {
	margin: 5px 0px 5px 5px;
	font-size: 12px;	
	width: 539px;
}

/** An inner table within a databoxDividerCell */
.databoxInnerTable {
	width: 100%;
}

/** Defines a table cell inside a databoxDividerTable */
.databoxDividerCell {
	width: 253px;
	padding: 0px;
}

/** Draws the vertical line that separates the columns in a databoxDivider table */
.databoxDivider {
	background: transparent url(../images/databox/vertcol.gif) repeat-y center top; 
	width: 32px;
}

/** A table in a databox with font formatting to match the 2col and 4col labelTables, 
	but without any defintions on column size - see "View Inspection" */
.databoxLabelTable {
	font-size: 10px;
	width: 100%;
}

.databoxLabelTable td {
	border-bottom: 1px solid #7fa0b8;
	padding: 7px;
	vertical-align: middle;
}

/** A table in a databox, with 1 label column and 1 data column - see "View Inspection" */
.databoxLabelTable2Cols {
	font-size: 10px;
	width: 100%;
}

.databoxLabelTable2Cols th {
	border-bottom: 1px solid #7fa0b8;
	letter-spacing: 1px;
	padding: 7px;
	width: 50%;
	vertical-align: middle;
}

.databoxLabelTable2Cols td {
	border-bottom: 1px solid #7fa0b8;
	padding: 7px;
	width: 50%;
	vertical-align: middle;
}


/** A table in a databox, with 2 label column and 2 data column - see "View Inspection" */
.databoxLabelTable4Cols {
	font-size: 10px;
	width: 100%;
}

.databoxLabelTable4Cols th {
	border-bottom: 1px solid #7fa0b8;
	letter-spacing: 1px;
	padding: 7px;
	width: 25%;
	vertical-align: middle;
}

.databoxLabelTable4Cols td {
	border-bottom: 1px solid #7fa0b8;
	padding: 7px;
	width: 25%;
	vertical-align: middle;
}

.databoxLabelTable4Cols td.middle {
	
}




/** A table cell in a databoxTable that contains buttons */
.databoxButtonsCell {
	text-align: right;	
	white-space: nowrap;
}
						
.databoxButton {
	background-color: #f5934a;
	border-width: 1px 2px 2px 1px;
	border-color: #004071;
	border-style: solid;
	padding: 0px 2px 0px 2px;
	color: #004071;
	font-size: 9px;
	font-family: arial, helvetica, sans-serif;
	letter-spacing: .5px;
}

/** Horizontal divider separating content in a databox */
.databoxDividerHorz {
	color: #bed1e0; 
	background-color: #bed1e0; 
	height: 1px; 
	border: 0px; 
	margin-top: 15px; 
	margin-bottom: 15px;
	margin-right: 18px;
}

/** Defines a databox table cell containing linkable text */
td.databoxLinkTxt {
	background: transparent url(../images/databox/linkarrow.gif) no-repeat 0px 6px;
	padding-left: 12px;
}

.databoxSubLinks {
	margin: 10px 0px 10px 15px;	
}
.databoxSubLinks a {
	background: transparent url(../images/databox/linkarrow.gif) no-repeat 0px 3px;
	padding-left: 12px;
	font-size: 11px;
	font-style: italic;
	margin-right: 15px;
}

.databox a {
	text-decoration: none;
	color: #004071;
}
						
.databox a:hover {
	text-decoration: underline;
}

.databox input {
	border-width: 1px 2px 2px 1px;
	border-color: #004071;
	border-style: solid;
	font-size: 10px;
	width: 95%;
	margin: 0px;
	padding-left: 2px;
}

.databox select {
	border-width: 1px 2px 2px 1px;
	border-color: #004071;
	border-style: solid;
	font-size: 10px;
	width: 100%;
}

.databox textarea {
	border-width: 1px 2px 2px 1px;
	border-color: #004071;
	border-style: solid;
	font-size: 10px;
	font-family: verdana, arial, sans-serif;
	width: 100%;
}

.databox input[type="checkbox"] {
	width: auto;
	border: none;
}

/* this is to support IE6.  IE6 doesn't support CSS for different input types,
   so we have to add class="checkbox" to the checkbox tag. Lame */
.databox input.checkbox {
	width: auto;
	border: none;
}

.databox input[type="radio"] {
	width: auto;
	border: none;
}

/* this is to support IE6.  IE6 doesn't support CSS for different input types,
   so we have to add class="radio" to the radio tag. Lame */
.databox input.radio {
	width: auto;
	border: none;
}

.databoxFreeForm {
	margin: 10px;	
}

.databoxFreeForm select {
	width: auto;
}

.databoxFreeForm input {
	width: auto;
}

.databoxSubtext {
	font-size: 10px; 
	color: #7fa0b8;
	font-style: italic;
}

.databoxCancelledText {
	color: #c0c0c0;
	text-decoration: line-through;
}


/* Databox attributes for the Inspections tables */
.databoxInspectionsTable {
	margin: 5px 0px 30px 5px;
	font-size: 12px; 
	width: 539px;
	border: 0px solid black;
}

/* table cell holding the inspection time */
.databoxInspectionsTimeCell {
	white-space: nowrap; 
	width: 105px;
}

/* table cell holding the inspector name and inspection address */
.databoxInspectionsAddressCell {
	width: 355px;
}

/* table cell holding the 'view' and 'edit' buttons for inspections */
.databoxInspectionsButtonsCell {
	width: 79px;
	text-align: right;	
	white-space: nowrap;
}
			
.databoxInspectionsInspectorTxt {
	font-weight: bold;
}
			
.databoxInspectionsAddressTxt {
	font-size: 90%; 
	font-style: italic;
}

/* horizontal line seperating the inspections */
.databoxInspectionsHorzLine {
	color: #bed1e0;
	background-color: #bed1e0; 
	height: 1px; 
	width: 290px; 
	margin: 2px 0px 0px 100px; 
	padding: 0;
	border: 0; 
	font-size: 1px; /** hack because IE had default sizes for text in divs **/
	line-height: 1px;
}

.webBooked {
	font-size: 75%; 
	font-weight: normal; 
	font-style: italic; 
	color: red; 
	margin-left: 5px
}
/* /Databox attributes for the Inspections tables */